import Common from '../../common/common.js';
import ConversationList from './ConversationList.js';

const doms = {
    conversationList:Common.tool.getElementByID("conversationList")
}

const conversationList = new ConversationList();

const setConversationListData= function(conversationListData){
    conversationList.updateData(conversationListData)
}


doms.conversationList.appendChild(conversationList.getElement());

const clear = function(){
    conversationList.clearItems();
}

export default {
    setConversationListData:setConversationListData,
    clear:clear
};
